<template>
  <div class="page has-navbar" v-nav="{ title: 'About', showBackButton: true, onBackButtonClick: back, backButtonText: '<i class=\'icon ion-ios-arrow-back\'>返回</i>' }">
    <div class="page-content text-center">
      <h2 class="padding">Nothing here.</h2>
    </div>
  </div>
</template>
<script>
  export default {
    beforeRouteEnter(to, from, next) {
      next()
    },
    created() {
      console.log('在这里获取前置预加载数据：',this.data.before)
    },
    methods: {
      back() {
        $router.back('/')
      }
    },
    watch: {
      afterRequestLoading() {
        console.log(`在这里获取后置预加载数据：`,this.data.after.requestData)
      }
    }
  }
</script>
